<?php
/**
 * Minhlog Domain_Entity 友情链接类
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category   Domain
 * @package    Domain_Entity
 * @copyright  Copyright (c) 2009-2010 Minh.Shu@gmail.com
 * @license    New BSD License
 * @author     Minh.Shu
 * @version    $Id: Link.php 2 2010-01-17 13:49:08Z Minh.Shu $
 *
 */

class Domain_Entity_Link extends Domain_Entity_Abstract
{
    protected $_linkId;
    protected $_typeId;
    protected $_siteName;
    protected $_siteDesc;
    protected $_siteUrl;
    protected $_displayOrder;

    // set/get方法定义开始
    public function setPrimaryId ($primaryId)
    {
        return $this->setLinkId($primaryId);
    }

    public function getPrimaryId()
    {
        return $this->getLinkId();
    }

    public function setLinkId($linkId)
    {
        $this->_linkId = (int) $linkId;
        return $this;
    }

    public function getLinkId()
    {
        return $this->_linkId;
    }

    public function setTypeId($typeId)
    {
        $this->_typeId = (int) $typeId;
        return $this;
    }

    public function getTypeId()
    {
        return $this->_typeId;
    }

    public function setSiteName($siteName)
    {
        $this->_siteName = (string) $siteName;
        return $this;
    }

    public function getSiteName()
    {
        return $this->_siteName;
    }

    public function setSiteDesc($siteDesc)
    {
        $this->_siteDesc = (string) $siteDesc;
        return $this;
    }

    public function getSiteDesc()
    {
        return $this->_siteDesc;
    }

    public function setSiteUrl($siteUrl)
    {
        $this->_siteUrl = (string) $siteUrl;
        return $this;
    }

    public function getSiteUrl()
    {
        return $this->_siteUrl;
    }

    public function setDisplayOrder($displayOrder)
    {
        $this->_displayOrder = (int) $displayOrder;
        return $this;
    }

    public function getDisplayOrder()
    {
        return $this->_displayOrder;
    } // set/get方法定义结束
}